zsh completion: fix [[ ... ]] conditional syntax
authorAndrew Janke <andrew@apjanke.net>
Tue, 28 Jul 2015 08:41:41 +0000 (04:41 -0400)
committerAndrew Janke <andrew@apjanke.net>
Tue, 28 Jul 2015 08:41:41 +0000 (04:41 -0400)
src/etc/_cargo

index 3e5095bf053c3aec78da23a321a9fce58fa6f422..d85e5a785588a998d37ef22fa16e35563ccf460d 100644 (file)
@@ -290,7 +290,7 @@ _get_names_from_array()
 {
     local -a filelist;
     local manifest=$(_locate_manifest)
-    if ! [[ $manifest ]]; then
+    if [[ -z $manifest ]]; then
         return 0
     fi